dnl config.m4 for extension fkenclient

PHP_ARG_WITH(fkenclient, wapper for libfkenclient
[  --with-fkenclient             Include fkenclient for fastken client])

if test "$PHP_FKENCLIENT" != "no"; then
  PHP_SUBST(FKENCLIENT_SHARED_LIBADD)

  if test -z "$ROOT"; then
	ROOT=/usr/local
  fi

  PHP_ADD_INCLUDE($ROOT/include)

  PHP_ADD_LIBRARY_WITH_PATH(fastcommon, $ROOT/lib, FKENCLIENT_SHARED_LIBADD)
  PHP_ADD_LIBRARY_WITH_PATH(fkenclient, $ROOT/lib, FKENCLIENT_SHARED_LIBADD)

  PHP_NEW_EXTENSION(fkenclient, fkenclient.c, $ext_shared)

  CFLAGS="$CFLAGS -Wall"
fi
